import Vue from 'vue'
import VueClipboard from 'vue-clipboard2'
import StickyDirective from 'vue-sticky-directive'
import VueLazyLoad from 'vue-lazyload'
//定义加载中的图片(如果用到的话可以用)
const loadimage = require('~/static/loadimage.png')
//定义加载图片出错的时候展现的图片
// const errorimage = require('~/static/icons/common/picture-error.png')
Vue.use(VueClipboard)
Vue.use(StickyDirective)
Vue.use(VueLazyLoad, {
  preLoad: 1.33,
  error: loadimage,
  loading: loadimage,
  attempt: 1,
  throttleWait: 500
})
